package cn.itcast.order.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @description TODO
 * @author sxt
 * @date 2024/5/6 22:04
 * @version 1.0
 */
@Service
@Slf4j
public class TestAsyncService {

    @Async
    public void testAsync1() {
        log.info("执行thread: {}",Thread.currentThread().getName());
    }

    @Async
    public void testAsync2() {
        log.info("执行thread: {}",Thread.currentThread().getName());
    }

}
